home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-pass.php < prev    next >
Encoding:
PHP Script  |  2005-03-13  |  299 b   |  11 lines

  1. <?php
  2. require( dirname(__FILE__) . '/wp-config.php');
  3.  
  4. if ( get_magic_quotes_gpc() )
  5.     $_POST['post_password'] = stripslashes($_POST['post_password']);
  6.  
  7. // 10 days
  8. setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
  9.  
  10. wp_redirect($_SERVER['HTTP_REFERER']);
  11. ?>